<?php

Yii::import('application.models._base.BaseStudentCollegeDetails');

class StudentCollegeDetails extends BaseStudentCollegeDetails
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
          public function rules() {
		return array(
			array('college_name, police_station_name_and_address,principal_first_name, principal_last_name, gender, phone_no1, state_id', 'required'),
			array('deemed_university, gender, phone_no1, phone_no2, state_id, college_type_id, affiliating_university_id', 'numerical', 'integerOnly'=>true),
			array('college_name, principal_first_name, principal_last_name', 'length', 'max'=>45),
			array('phone_no1, phone_no2', 'length', 'max'=>10),
			array('police_station_name_and_address', 'safe'),
			array('phone_no2, police_station_name_and_address', 'default', 'setOnEmpty' => true, 'value' => null),
			array('id, college_name, deemed_university, principal_first_name, principal_last_name, gender, phone_no1, phone_no2, police_station_name_and_address, student_details_id, state_id, college_type_id, affiliating_university_id', 'safe', 'on'=>'search'),
		);
	}
}